". For example, the following C expression, intended to test the least significant bit of x, x & 1 == 0is parsed as x & (1 == 0)which is always zero (false).Some lazy programmers ignore precedence and parenthesise everything. Lisp fans enjoy pointing out that this can't happen in *their* favourite language, which eschews precedence entirely, requiring one to use explicit parentheses everywhere.[Jargon File](1994-12-16)……"> precedence lossage : FOLDOC
翻訳と辞書
Words near each other
・ pragma
・ pram
・ praxis critical systems
・ pre-cc
・ pre-emptive multitasking
・ pre-order
・ pre-order traversal
・ pre-sales support rep
・ preccx
・ precedence
precedence lossage
・ precharge
・ precision
・ predecessor
・ predicate calculus
・ predicate logic
・ predict
・ predomain
・ prefetch
・ prefix


Dictionary Lists
翻訳と辞書 辞書検索 [ 開発暫定版 ]
スポンサード リンク

precedence lossage : FOLDOC
precedence lossage
/pre's*-dens los'*j/ A misunderstanding of {operator precedence} resulting in unintended grouping of arithmetic or logical operators when coding an expression. Used especially of mistakes in C code due to the nonintuitively low precedence of "&", "|", "^", "<<" and ">>". For example, the following C expression, intended to test the least significant bit of x,
x & 1 == 0

is parsed as
x & (1 == 0)

which is always zero (false).
Some lazy programmers ignore precedence and parenthesise everything. Lisp fans enjoy pointing out that this can't happen in *their* favourite language, which eschews precedence entirely, requiring one to use explicit parentheses everywhere.
[Jargon File]
(1994-12-16)



スポンサード リンク
翻訳と辞書 : 翻訳のためのインターネットリソース

Copyright(C) kotoba.ne.jp 1997-2016. All Rights Reserved.